const order = {
    state: {
       orderStatus: '',
       logisticStatus: '',
       orderType: '',
       brandId: '',
       activityId: ''
    },
    mutations: {
    
      SAVE_ORDER_EXPORT_STATUS: (state, orderStatus) => {
        state.orderStatus = orderStatus
      },
      SAVE_LOGISTIC_EXPORT_STATUS: (state,logisticStatus) => {
          state.logisticStatus = logisticStatus
      },
      SAVE_ORDER_EXPORT_TYPE: (state,orderType) => {
        state.orderType = orderType
      },
      SAVE_ORDER_BRNDID: (state,brandId) => {
        state.brandId = brandId
      },
      SAVE_ORDER_ACTIVITYID: (state,activityId) => {
        state.activityId = activityId
      }
    },
    actions: {
    
      saveOrderExportStatus({commit},orderStatus){
          commit('SAVE_ORDER_EXPORT_STATUS',orderStatus)
      },
      saveOrderExportLogisticStatus({commit},logisticStatus){
          commit('SAVE_LOGISTIC_EXPORT_STATUS', logisticStatus)        
      },
      saveOrderExportOrderType({commit},orderType){
        commit('SAVE_ORDER_EXPORT_TYPE', orderType)        
      },
      saveOrderBrandId({commit}, brandId){
        commit('SAVE_ORDER_BRNDID', brandId)        
      },
      saveOrderActivityId({commit}, activityId){
        commit('SAVE_ORDER_ACTIVITYID', activityId)        
      }
    }
  }
  
  export default order